/**
 * Company : SIANGKLOM.
 * Created By : Chatree Siangklom
 * Created On : Oct 18, 2013  3:50:10 PM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.services.staging
 * File Name : IApplicationLogingServices.java
 * TODO
 */
package com.tis.database.services.staging;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import org.hibernate.HibernateException;
import com.tis.database.entitys.staging.ApplicationLoging;

/**
 * @author Chatree Siangklom of Administrator
 * Date =Oct 18, 2013 : 3:50:10 PM 
 * CreateBy=Chatree Siangklom
 * 
 * IApplicationLogingServices
 * TODO
 */
public interface IApplicationLogingServices {

	List<ApplicationLoging> Search(	String id,
									String instanceNo,									
									String msgCode,
									String msgDesc,
									String msgAltDesc,
									String refInstanceNo,
									String createdOnStart, 
									String createdOnEnd,
									int maxResult) throws HibernateException, Exception;	
	BigDecimal NextSequence() throws HibernateException, Exception;	
	void saveOrUpdate(ApplicationLoging e);
    void saveOrUpdate(List<ApplicationLoging> e);	
    ApplicationLoging findById(String id);    
    List<ApplicationLoging> findByInstanceNo(String instanceNo, ApplicationLoging e) throws HibernateException, Exception;    
    BigDecimal NextInstanceNo() throws HibernateException, Exception;
    Date getCurrentDatabaseDate() throws HibernateException, Exception;
}
